home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.mactech.com 2010
/
ftp.mactech.com.tar
/
ftp.mactech.com
/
machack
/
Hacks97
/
WarriorsProgress.sit
/
Warrior’s Progress
/
source code
/
Source
/
Libraries
/
Dates
/
DateObject.h
< prev
next >
Wrap
Text File
|
1997-06-28
|
834b
|
41 lines
// DateObject.h
#ifndef DateObject_h
#define DateObject_h
#ifndef ConstData_h
#include "ConstData.h"
#endif
#ifndef Str_h
#include "Str.h"
#endif
class DateObject
{
private:
uint32 secondsFrom1904;
static Handle Intl0Resource();
static Handle Intl1Resource();
static DateCacheRecord *MakeCache();
static DateCacheRecord *Cache();
public:
DateObject() {}
DateObject( ConstData text ) { operator=( text ); }
DateObject( int64 seconds ) : secondsFrom1904( seconds ) {}
static DateObject Now();
void operator=( ConstData );
void operator=( uint32 seconds ) { secondsFrom1904 = seconds; }
uint32 SecondsFrom1904() const { return secondsFrom1904; }
void WriteDate( String255& ) const;
void WriteTime( String255& ) const;
void WriteDateAndTime( String255& ) const;
};
#endif